﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/main.Master" CodeBehind="Details.aspx.vb" Inherits="moviesblogspot.Details" 
    title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

    <table class="style1">
    <tr>
    <td>
        <a>This site has been viewed for the
     <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></a>
     <a>th time</a>
    </td>
       
    
    </tr>
    <tr>
        <td>
        
    <%--        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                DataSourceID="SqlDataSource1" CssClass="gridclass2">
                <Columns>
                    <asp:BoundField DataField="description" HeaderText="description" 
                        SortExpression="description" />
                    <asp:BoundField DataField="cast" HeaderText="cast" SortExpression="cast" />
                    <asp:BoundField DataField="musicdirector" HeaderText="musicdirector" 
                        SortExpression="musicdirector" />
                    <asp:BoundField DataField="director" HeaderText="director" 
                        SortExpression="director" />
                    <asp:BoundField DataField="productionhouse" HeaderText="productionhouse" 
                        SortExpression="productionhouse" />
                    <asp:BoundField DataField="budjet" HeaderText="budjet" 
                        SortExpression="budjet" />
                    <asp:BoundField DataField="yearofrelease" HeaderText="yearofrelease" 
                        SortExpression="yearofrelease" />
                    <asp:ImageField DataImageUrlField="images" HeaderText="Movieimages">
                    </asp:ImageField>
                </Columns>
            </asp:GridView>--%>

            <%--<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:MovieConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:MovieConnectionString.ProviderName %>" 
                SelectCommand="SELECT [description], [cast], [musicdirector], [director], [productionhouse], [images], [budjet], [yearofrelease] FROM [moviedetails] WHERE ([movieID] = ?)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="movieID" QueryStringField="movieID" 
                        Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>--%>
            
            
 
<%--<tr>
<td height="10px">

</td>
</tr>--%>


        
            
            <table style="width: 100%">
                <tr>
                    <td>
                    <asp:Image ID="lbimgmovie" runat="server" Height="229px" Width="160px" />
                        &nbsp;
                        </td>
                    <td>
                        <asp:Panel ID="Panel1" runat="server">
                            <table style="width: 100%">
                                  <tr>
                                    <td  align ="left">
                                    <a>MOVIENAME:</a>
                                   <asp:Label ID="lbmoviename" runat="server" CssClass="smallLabel"></asp:Label>
                                       </td>
                                </tr>
                                <tr>
                                    <td align ="left" >
                                        <a>STARS:</a>
   <asp:Label ID="lbcast" runat="server" CssClass="smallLabel"></asp:Label>
                                        </td>
                                </tr>
                                <tr>
                                    <td  align ="left">
                                    <a>YEAR OF RELEASE:</a>
   <asp:Label ID="lbyearofrelease" runat="server" CssClass="smallLabel"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td  align ="left">
                                    <a>MOVIE DIRECTOR:</a>
   <asp:Label ID="lbDirector" runat="server" CssClass="smallLabel"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td  align ="left">
                                    <a>MUSIC DIRECTOR:</a>
   <asp:Label ID="lbmusicdirector" runat="server" CssClass="smallLabel"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td  align ="left">
                                     <a>PRODUCTION HOUSE:</a>
   <asp:Label ID="lbproductionhouse" runat="server" CssClass="smallLabel"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td  align ="left">
                                    <a>BUDJET OF MOVIE:</a>
   <asp:Label ID="lbbudjet" runat="server" CssClass="smallLabel"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td  align ="left">
                                    <a>MOVIE DESCRIPTION:</a>
   <asp:Label ID="lbdescription" runat="server" CssClass="smallLabel"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                 <tr>
                 <td align ="left" > 
                 <a>AVERAGE RATING</a>   
  <asp:Rating  BorderWidth="1" ReadOnly="true" BorderStyle="Solid"
    width="235px" 
    Height="42px" 
    ID="avgrating"  
    CurrentRating="1" 
    runat="server" 
    StarCssClass="ratingStar" 
    WaitingStarCssClass="savedRatingStar" 
    EmptyStarCssClass="emptyRatingStar" 
    filledStarCssClass="filledRatingStar"
    MaxRating="5"> 
     </asp:Rating>
   </td> 
                </tr> 
                </table>
                 </asp:Panel>
                 </tr> 
               </table>


        
   <table>
   <tr> 
   <td>    
  <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
  </asp:ToolkitScriptManager>
  <asp:Rating ID="Rating1" runat="server" RatingAlign="Horizontal"  
   RatingDirection="LeftToRightTopToBottom"  BorderWidth="1"  BorderStyle="Solid" 
           width="229px" Height="40px" CurrentRating="0" StarCssClass="ratingStar" 
   WaitingStarCssClass="savedRatingStar" EmptyStarCssClass="emptyRatingStar" 
           filledStarCssClass="filledRatingStar" MaxRating="5" >
   </asp:Rating>
       <asp:Button ID="Button1" runat="server" Text="Submit" />
   </td> 
   </tr>  
    <tr>  <td>
        <asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSourceTAG" DataTextField="Tag" DataValueField="ID">
        </asp:CheckBoxList>
        <a>Add New Tag</a>
        <asp:TextBox ID="tb_tag" runat="server"></asp:TextBox>
        <br />
        <asp:Button ID="bt_Tags" runat="server" Text="Add Tag" />
        </td>
        <td>
        <asp:Label ID="lblTags" runat="server" Visible="false" Text="New Tag Added"></asp:Label>                        
    </td></tr>
            <asp:SqlDataSource ID="SqlDataSourceTAG" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MovieConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MovieConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [Tag] FROM [Tags]"></asp:SqlDataSource>
   </table>
            
            

            <asp:Repeater ID="Repeater1"  DataSourceID="SqlDataSource_Comment" runat="server">
            <ItemTemplate>
                <div style=" border-bottom: 20px; width:50%">
                    <ul>
                        <li  style=" background-color:Olive; text-align:left;list-style: none; width:150px;" >
                            <%#Eval("author")%> says:
                        </li>
                        <li style=" background-color:Olive; list-style: none;">
                            <%# Eval("comment")%> 
                         </li>
                    </ul>
                </div> 
                </ItemTemplate>
               </asp:Repeater>
            <asp:SqlDataSource ID="SqlDataSource_Comment" runat="server" ConnectionString="<%$ ConnectionStrings:MovieConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MovieConnectionString.ProviderName %>"
                SelectCommand="SELECT [Author], [Title], [Comment]  FROM [Comments] WHERE ([MovieID] =@MovieID)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="MovieID" QueryStringField="MovieID" 
                        Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
            ADD COMMENTS HERE
            <br />
            <asp:TextBox ID="txtb_comment" runat="server" Height="83px" TextMode="MultiLine" 
                Width="481px"></asp:TextBox>
            <br />
            <asp:Button ID="btnComment" runat="server" Text="Submit" />
            <br />

            
            

</asp:Content>
